package com.hbean.system.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description: 系统配置类
                     @ConfigurationProperties(prefix = "globalConfig")表示获取配置文件中前缀为 ‘config’的属性值，此注解需要以下依赖
                    <dependency>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-configuration-processor</artifactId>
                    <optional>true</optional>
                    </dependency>
 * @Project: hbean
 * @Author: hjibo
 * @CreateDate: 2018-09-28 15:47
 * @ModificationHistory:
 */

@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "config")
class PropertiesConfig {
    private String serverName;
    private String password;
    private String nettyHost;
    private int nettyPort;
    private int sessionOutTime;
    private String filePath;
}
